package com.demo.bean;

import lombok.Getter;

/**
 * @author wangzhanjin
 * @date 2018/6/11 13:00
 */
@Getter
public enum StatusEnum {
    SUCCESS(200, "OK"),
    BAD_REQUEST(400, "Bad Request"),
    NOT_FOUND(404, "Not Found"),
    INTERNAL_SERVER_ERROR(500, "Unknown Internal Error"),
    NOT_VALID_PARAM(40005, "Not valid Params"),
    NOT_SUPPORTED_OPERATION(40006, "Operation not supported"),
    NOT_LOGIN(50000, "Not Login");

    private int code;
    private String standardMessage;

    StatusEnum(int code, String standardMessage) {
        this.code = code;
        this.standardMessage = standardMessage;
    }


    public void setCode(int code) {
        this.code = code;
    }

    public void setStandardMessage(String standardMessage) {
        this.standardMessage = standardMessage;
    }
}